package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressService {
    List<AddressBook> list(Long id);

    void addAddress(AddressBook addressBook);


    AddressBook findIsDefault(Long userId);

    void toNullDefaul(Long userId);

    void toDefault(Long id);

    AddressBook getAddressById(Long id);

    void updateAddress(AddressBook addressBook);

    void deleteAddress(Long id);
}
